using System;
using System.Web.Mvc;
using System.Web.Routing;
using Castle.Windsor;

namespace ThunderJob.Bootstrapper.Configuration
{
    public class RoutesConfiguration:IConfigurationTask
    {
        public void Configure()
        {
            RouteCollection routes = RouteTable.Routes;

            routes.Clear();

            routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
            routes.IgnoreRoute("{resource}.gif/{*pathInfo}");
            routes.IgnoreRoute("{resource}.ico/{*pathInfo}");

            routes.MapRoute(
                "Default",                                              // Route name
                "{controller}/{action}/{id}",                           // URL with parameters
                new { controller = "Home", action = "Index", id = "" }  // Parameter defaults
            );
        }
    }
}